package com.sjy.ylxt.entity.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author: 史俊颖
 * @CreateTime: 2024-12-18
 * @Description: 预约类
 */
@Data
public class AddAppointmentDTO {

    @NotBlank(message = "患者ID不能为空")
    private String patientId;

    @NotBlank(message = "陪诊员ID不能为空")
    private String companionId;

    @NotNull(message = "预约日期不能为空")
    private Date appointmentDate;

    @NotNull(message = "预约时间不能为空")
    private Date appointmentTime;

    @NotNull(message = "服务类型不能为空")
    private Integer serviceType;

    @NotBlank(message = "预约地点不能为空")
    private String location;

    @NotBlank(message = "预约描述不能为空")
    private String description;
}
